<?php
if (!$GALLERY = Doctrine::getTable('gallery')->findOneByUri($_GET['uri'])){
    header('HTTP/1.0 404 Not Found');
    exit();
}
?>
